package com.gua.user.mapper;

import com.gua.user.response.ManagementMenuDTO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gua.user.entity.ManagementMenu;

import java.util.List;

@Mapper
@Repository
public interface ManagementMenuMapper extends BaseMapper<ManagementMenu> {

    /**
     * 根据用户id获取用户权限列表
     *
     * @param userId
     * @return
     */
    List<String> selectPermsByUserId(Long userId);

    /**
     * 根据用户id获取用户菜单列表
     *
     * @param userId
     * @return
     */
    List<ManagementMenuDTO> getMenusByUserId(Long userId);

}
